package no.ntnu.fp.gui;

import java.awt.Component;
import javax.swing.JPanel;

import net.miginfocom.swing.MigLayout;

public class MessageContainer extends JPanel {
	
	public MessageContainer() {
		super();
		setLayout(new MigLayout());
	}
	
	@Override
	public Component add(Component m) {
		add(m, "wrap");
		return m;
	}
	
	public void remove(MessageLabel m) {
		super.remove(m);
		repaint();
	}
}
